package Inheritance;

public class FatherClass {
    public  String  name;//姓名
    public  String  idNo;//工号

    //初始化
    public  FatherClass(){
        this.name = "父亲";
        this.idNo = "父亲的工号是: 0000001";
    }

    public FatherClass(String name, String idNo) {
        this.name = name;
        this.idNo = idNo;
    }

    public void methord(){
        System.out.println("父类输出了");
    }
}
